package com.kaishengit.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.TaskTypeDao;
import com.kaishengit.pojo.Task;
import com.kaishengit.pojo.TaskType;

@Transactional
public class TaskTypeService {
	private TaskTypeDao taskTypeDao;

	public void setTaskTypeDao(TaskTypeDao taskTypeDao) {
		this.taskTypeDao = taskTypeDao;
	}

public TaskType findByType(String type) {
		
		return taskTypeDao.findByUnique("type", type);
	}
	
	

}
